<template>
  <div>
    <!-- 回到首页 -->
    <div @click="backHome" class="fixed">
      <div><img src="/me_img/home.png" alt="" /></div>
      <p>回到首页</p>
    </div>
  </div>
</template>

<script>
export default {
  methods: {
    backHome() {
      this.$router.push('/')
    },
  },
}
</script>

<style lang="scss" scoped>
.fixed {
  position: fixed;
  bottom: 70px;
  right: 16px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #1faf88;
  z-index: 10;
}
.fixed div img {
  width: 25px;
  height: 25px;
  margin-top: 5px;
  transform: translate(70%);
}
.fixed p {
  font-size: 12px;
  margin-top: 0;
  color: #fff;
  text-align: center;
}
</style>
